AnnotationTarget

enum AnnotationTarget : Enum<AnnotationTarget>

Contains the list of code elements which are the possible annotation targets

Entries

TYPEALIAS
Link copied to clipboard
JS

Type alias

FILE
Link copied to clipboard
JS

File

EXPRESSION
Link copied to clipboard
JS

Any expression

TYPE
Link copied to clipboard
JS

Type usage

PROPERTY_SETTER
Link copied to clipboard
JS

Property setter only

PROPERTY_GETTER
Link copied to clipboard
JS

Property getter only

FUNCTION
Link copied to clipboard
JS

Function (constructors are not included)

CONSTRUCTOR
Link copied to clipboard
JS

Constructor only (primary or secondary)

VALUE_PARAMETER
Link copied to clipboard
JS

Value parameter of a function or a constructor

LOCAL_VARIABLE
Link copied to clipboard
JS

Local variable

FIELD
Link copied to clipboard
JS

Field, including property's backing field

PROPERTY
Link copied to clipboard
JS

Property

TYPE_PARAMETER
Link copied to clipboard
JS

Generic type parameter (unsupported yet)

ANNOTATION_CLASS
Link copied to clipboard
JS

Annotation class only

CLASS
Link copied to clipboard
JS

Class, interface or object, annotation class is also included

Properties

name
Link copied to clipboard
JS
val name: String
ordinal
Link copied to clipboard
JS
val ordinal: Int